//
//  DBHrv.h
//  CareRingApp
//
//  Created by Linktop on 2022/6/7.
//

#import <Foundation/Foundation.h>
#import "DBValueSuper.h"
NS_ASSUME_NONNULL_BEGIN

@interface DBHrv : DBValueSuper

// 查询平均值
+(void)queryAverage:(NSString * _Nonnull)macAddress Begin:(NSDate *)beginDate End:(NSDate *)endDate  Cpmplete:(void(^)(NSNumber * _Nullable average, NSNumber * _Nullable maxTime,  NSNumber * _Nullable minTime ) )cmpBlk;

// 查询列表
+(void)queryBy:(NSString * _Nonnull)macAddress Begin:(NSDate *)beginDate End:(NSDate *)endDate OrderBeTimeDesc:(BOOL)isDesc Cpmplete:(void(^)(NSMutableArray<DBHrv *> *results, NSNumber *maxHrv, NSNumber *minHrv, NSNumber *avgHrv))cmpBlk;

+(void)queryMutiDataGroupHours:(NSString * _Nonnull)macAddress DayDate:(NSDate *)dayDate   Cpmplete:(void(^)(NSMutableArray<NSDictionary *> * res) )cmpBlk;



@end

NS_ASSUME_NONNULL_END
